package com.nervenets.shopping.service.impl;

import com.nervenets.general.service.impl.BaseServiceImpl;
import com.nervenets.shopping.hibernate.dao.BonusSharingItemDao;
import com.nervenets.shopping.hibernate.domain.order.BonusSharing;
import com.nervenets.shopping.hibernate.domain.order.BonusSharingItem;
import com.nervenets.shopping.service.BonusSharingItemService;
import org.springframework.stereotype.Service;

@Service
public class BonusSharingItemServiceImpl extends BaseServiceImpl<BonusSharingItem, BonusSharingItemDao> implements BonusSharingItemService {
    @Override
    public BonusSharingItem findBonusSharingItem(BonusSharing bonusSharing, long createBy) {
        return dao.findTopByBonusSharingAndCreateBy(bonusSharing, createBy);
    }
}
